//
//  PrivateLetterViewController.m
//  didipai
//
//  Created by wangjia_01 on 16/3/8.
//  Copyright © 2016年 wangjia_01. All rights reserved.
//

#import "PrivateLetterViewController.h"
#import "PrivateletterTableViewCell.h"
@interface PrivateLetterViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UIButton *back;
@property (weak, nonatomic) IBOutlet UIButton *privateLetter;
@property (weak, nonatomic) IBOutlet UITableView *all_tableview;

@end

@implementation PrivateLetterViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.all_tableview.dataSource = self;
    self.all_tableview.delegate = self;
    [self.all_tableview registerNib:[UINib nibWithNibName:@"PrivateletterTableViewCell" bundle:nil] forCellReuseIdentifier:@"PrivateletterTableViewCell"];
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)back:(UIButton *)sender {
}
- (IBAction)writeletter:(UIButton *)sender {
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 3;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    PrivateletterTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"PrivateletterTableViewCell"];
    if (cell == nil) {
        cell = [[PrivateletterTableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"PrivateletterTableViewCell"];
    }
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 60;
}

@end
